package cn.lang.consumer.controller;

import cn.hutool.core.util.URLUtil;

public class Test {

    public static void main(String[] args) {

        String redirectUri = "http://asdasd.com/asdasd?asdasd123141&dsfasd=1 &123asd=3";
        System.out.println(URLUtil.encode(redirectUri));
        String[] urlArr = redirectUri.split("\\?");
        redirectUri = urlArr[0] + "?" + URLUtil.encode(urlArr[1]);


        System.out.println(URLUtil.encode(redirectUri));
    }
}
